import requests
import json

# 快速测试
try:
    print("测试登录...")
    response = requests.post(
        "http://localhost:8889/api/login",
        json={"username": "admin", "password": "admin123"},
        timeout=3,
    )
    print(f"状态码: {response.status_code}")
    print(f"响应: {response.text}")
except Exception as e:
    print(f"错误: {e}")
